package com.aconcagua.factory
{
  import com.aconcagua.beans.BeanDefinitionFactory;
  
  [DefaultProperty("beans")] 
  public class MXMLBeanFactory extends AbstractBeanFactory
  {
    private var _beans: Array;

    public function set beans(definitions: Array): void {
      _beans = definitions;
    }
    
    public function init(): void {
      for each(var bean: BeanDefinitionFactory in _beans) {
        bean.registerIn(this);
      }
    }
  }
}